import { Button, ErrorBlock, Space } from "antd-mobile";
import { useHistory } from "react-router";

export default function NotFound() {
  const history = useHistory();
  return (
    <ErrorBlock
      title="你要访问的页面不见了"
      description="换个页面试试..."
      fullPage
    >
      <Space>
        <Button color="primary" onClick={() => history.push("/")}>
          返回首页
        </Button>
        <Button color="warning" onClick={() => history.go(-1)}>
          后退一步
        </Button>
      </Space>
    </ErrorBlock>
  );
}
